﻿@using Kendo.Mvc.UI;
@{
    if (!Request.IsAjaxRequest())
    { Layout = "~/Views/Shared/_LayoutNoNavbar.cshtml"; }
    else
    { Layout = null; }
}
@model TS2015.Models.TbThiSinh


<div class="panel-body">
    @using (@Html.BeginForm("DKNghe", "Common", FormMethod.Post, new { @id = "DKNghe" }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)
        @Html.HiddenFor(m => m.MaTS)
        <div class="form-group">
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>1. Họ, tên đệm và tên của thí sinh (<a style="color:red;font-size:12px">*</a>):</strong>
                </div>
                <div class="clear"></div>
                <div class="col-lg-10 col-md-10 row">
                    <div class="col-lg-7 col-md-7 row">
                        @Html.TextBoxFor(m => m.HoDem, new { @class = "form-control", placeholder = "Họ và Tên đệm..." })
                    </div>
                    <div class="col-lg-5 col-md-5">
                        @Html.TextBoxFor(m => m.Ten, new { @class = "form-control", placeholder = "Tên..." })
                    </div>
                </div>
            </div>
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>2. Giới tính (<a style="color:red;font-size:12px">*</a>):</strong>
                </div>
                <div class="clear"></div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.EnumDropDownListFor(m => m.GioiTinh, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.GioiTinh)
                    </div>
                </div>
            </div>
        </div>
        <div style="clear:both"></div>
        <div class="form-group">
            <div class="col-lg-7 col-md-7">
                <div class="row">
                    <div class=" col-lg-2 col-md-2">
                        <div class="row row-top-label">
                            <strong>3. Ngày sinh (<a style="color:red;font-size:12px">*</a>):</strong>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="col-lg-5 col-md-5">
                        <div class="row-top-input">
                            @Html.TextBoxFor(e => e.NgaySinh, new { type = "date", @class = "form-control", @Value = (Model.NgaySinh.Equals(default(DateTime)) ? DateTime.Now.ToString("MM/dd/yyyy") : Model.NgaySinh.ToString("yyyy/MM/dd")) })
                            @Html.ValidationMessageFor(model => model.NgaySinh)
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div style="clear:both"></div>
        <div class="form-group">
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>4. Dân tộc (<a style="color:red;font-size:12px">*</a>):</strong>
                    <div class="clear"></div>
                </div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.DropDownList("MaDanToc", (SelectList)ViewBag.DanToc, "Chọn Dân tộc", new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.MaDanToc)
                    </div>
                </div>

            </div>
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>5. Thuộc đối tượng ưu tiên (<a style="color:red;font-size:12px">*</a>):</strong>
                    <div class="clear"></div>
                </div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.DropDownList("MaDoiTuong", (SelectList)ViewBag.DoiTuongUuTien, "Chọn Đối tượng", new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.MaDoiTuong)
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <strong>6. Hộ khẩu thường trú</strong>:
            <div class="clear"></div>
            <div class="col-lg-6 col-md-6">
                <label>Tỉnh (<a style="color:red;font-size:12px">*</a>):</label>
                <div class="clear"></div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.DropDownList("MaTinh", (SelectList)ViewBag.Tinh, "Chọn Tỉnh...", new { @class = "form-control valid", data_val = "true", data_val_required = " ", aria_required = "true", aria_describedby = "MaTinh-error MaTinh-error MaTinh-error", id = "ProvinceVocationalID" })
                        <span class="field-validation-valid" data-valmsg-for="MaTinh" data-valmsg-replace="true"></span>
                    </div>
                </div>
            </div>
            <div class="col-lg-6 col-md-6">
                <label>Huyện (<a style="color:red;font-size:12px">*</a>): </label>
                <div class="clear"></div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @if (Model.MaTS != null)
                        {
                            @Html.DropDownListFor(m => m.MaHuyen, (SelectList)ViewBag.Huyen, "Chọn Huyện...", new { @class = "form-control", id = "CommuneID" })
                        }
                        else
                        {
                            @Html.DropDownListFor(m => m.MaHuyen, new SelectList(Enumerable.Empty<SelectListItem>(), "MaHuyen", "TenHuyen"), "Chọn Huyện...", new { @class = "form-control", id = "CommuneVocationalID" })
                        }
                        @Html.ValidationMessageFor(model => model.MaHuyen)
                    </div>
                </div>

            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>7. Địa chỉ (<a style="color:red;font-size:12px">*</a>):</strong>:
                    <div class="clear"></div>
                </div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.TextBoxFor(m => m.DiaChi, new { @class = "form-control" })
                    </div>
                </div>
            </div>
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>8. Cơ quan công tác:</strong>:
                    <div class="clear"></div>
                </div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.TextBoxFor(m => m.CoQuanCongTac, new { @class = "form-control" })
                    </div>
                </div>
            </div>
        </div>
        <div style="clear:both"></div>
        <div class="form-group">
            <div class="form-group">
                <strong>9. Trường THPT:</strong>
                <div class="clear"></div>
                <label>Lớp 10: </label>
                <div class="clear"></div>
                <div class="col-lg-6 col-md-6">
                    <div class="col-lg-8 col-md-8">
                        <div class="row">
                            <strong>Tỉnh (<a style="color:red;font-size:12px">*</a>):</strong>
                            @Html.DropDownList("MaTinh10", (SelectList)ViewBag.TinhTruong, "Chọn Tỉnh...", new { @class = "form-control valid", data_val = "true", data_val_required = " ", aria_required = "true", aria_describedby = "MaTinh10-error MaTinh10-error MaTinh10-error", id = "ProvinceID10" })
                            <span class="field-validation-valid" data-valmsg-for="MaTinh10" data-valmsg-replace="true"></span>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 col-md-6">
                    <div class="col-lg-8 col-md-8">
                        <div class="row">
                            <strong>Trường THPT (<a style="color:red;font-size:12px">*</a>): </strong>
                            @Html.DropDownList("IDTruong10", new SelectList(Enumerable.Empty<SelectListItem>(), "IDTruong", "TenTruong"), "Chọn Trường...", new { @class = "form-control", id = "HighSchoolID10" })
                            @Html.ValidationMessage("IDTruong10")
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
                <strong>Lớp 11: </strong>
                <div class="clear"></div>
                <div class="col-lg-6 col-md-6">
                    <div class="col-lg-8 col-md-8">
                        <div class="row">
                            <strong>Tỉnh (<a style="color:red;font-size:12px">*</a>):</strong>
                            @Html.DropDownList("MaTinh11", (SelectList)ViewBag.TinhTruong, "Chọn Tỉnh...", new { @class = "form-control valid", data_val = "true", data_val_required = " ", aria_required = "true", aria_describedby = "MaTinh11-error MaTinh11-error MaTinh11-error", id = "ProvinceID11" })
                            @Html.ValidationMessage("MaTinh11")
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 col-md-6">
                    <div class="col-lg-8 col-md-8">
                        <div class="row">
                            <strong>Trường THPT (<a style="color:red;font-size:12px">*</a>): </strong>
                            @Html.DropDownList("IDTruong11", new SelectList(Enumerable.Empty<SelectListItem>(), "IDTruong", "TenTruong"), "Chọn Trường...", new { @class = "form-control", id = "HighSchoolID11" })
                            @Html.ValidationMessage("IDTruong11")
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
                <strong>Lớp 12: </strong>
                <div class="clear"></div>
                <div class="col-lg-6 col-md-6">
                    <div class="col-lg-8 col-md-8">
                        <div class="row">
                            <strong>Tỉnh (<a style="color:red;font-size:12px">*</a>):</strong>
                            @Html.DropDownList("MaTinh12", (SelectList)ViewBag.TinhTruong, "Chọn Tỉnh...", new { @class = "form-control valid", data_val = "true", data_val_required = " ", aria_required = "true", aria_describedby = "MaTinh12-error MaTinh12-error MaTinh12-error", id = "ProvinceID12" })
                            <span class="field-validation-valid" data-valmsg-for="MaTinh" data-valmsg-replace="true"></span>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 col-md-6">
                    <div class="col-lg-8 col-md-8">
                        <div class="row">
                            <strong>Trường THPT (<a style="color:red;font-size:12px">*</a>): </strong>
                            @Html.DropDownList("IDTruong12", new SelectList(Enumerable.Empty<SelectListItem>(), "IDTruong", "TenTruong"), "Chọn Trường...", new { @class = "form-control", id = "HighSchoolID12" })
                            @Html.ValidationMessage("IDTruong12")
                        </div>
                    </div>
                </div>
            </div>
            @*<strong>9. Nơi tốt nghiệp :</strong>
                <div class="clear"></div>
                <div class="col-lg-6 col-md-6">
                    <label>Tỉnh :</label>
                    <div class="clear"></div>
                    <div class="col-lg-8 col-md-8">
                        <div class="row">
                            @Html.DropDownList("MaTinhTruong", (SelectList)ViewBag.TinhTruong, "Chọn Tỉnh...", new { @class = "form-control valid", data_val = "true", data_val_required = " ", aria_required = "true", aria_describedby = "MaTinhTruong-error MaTinhTruong-error MaTinhTruong-error", id = "ProvinceVocationalID2" })
                            <span class="field-validation-valid" data-valmsg-for="MaTinhTruong" data-valmsg-replace="true"></span>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 col-md-6">
                    <label>Trường THPT : </label>
                    <div class="clear"></div>
                    <div class="col-lg-8 col-md-8">
                        <div class="row">
                            @Html.DropDownListFor(m => m.IDTruong, new SelectList(Enumerable.Empty<SelectListItem>(), "IDTruong", "TenTruong"), "Chọn Trường...", new { @class = "form-control", id = "HighSchoolVocationalID" })
                            @Html.ValidationMessageFor(model => model.IDTruong)
                        </div>
                    </div>
                </div>*@
        </div>
        <div class="form-group">
            <strong>10. Điểm Trung học phổ thông :</strong>
            <div class="clear"></div>
            <div class="col-lg-4 col-md-4">
                <div class="col-lg-4 col-md-4">
                    <div class="row row-top-label">
                        <strong>Điểm lớp 10:</strong>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="col-lg-2 col-md-2">
                    <div class="row row-top-input">
                        @Html.TextBoxFor(m => m.DiemLop10, new { @class = "form-control" })
                    </div>
                </div>
            </div>
            <div class="col-lg-4 col-md-4">
                <div class="col-lg-4 col-md-4">
                    <div class="row row-top-label">
                        <strong>Điểm lớp 11:</strong>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="col-lg-2 col-md-2">
                    <div class="row row-top-input">
                        @Html.TextBoxFor(m => m.DiemLop11, new { @class = "form-control" })
                    </div>
                </div>
            </div>
            <div class="col-lg-4 col-md-4">
                <div class="col-lg-4 col-md-4">
                    <div class="row row-top-label">
                        <strong>Điểm lớp 12:</strong>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="col-lg-2 col-md-2">
                    <div class="row row-top-input">
                        @Html.TextBoxFor(m => m.DiemLop12, new { @class = "form-control" })
                    </div>
                </div>
            </div>
            @*<div class="col-lg-3 col-md-3">
                    <div class="col-lg-8 col-md-8">
                        <div class="row row-top-label"><strong>Điểm Trung bình THPT:</strong></div>
                    </div>
                    <div class="col-lg-3 col-md-3">
                        <div class="row row-top-input">
                            @Html.TextBoxFor(m => m.DiemTBTHPT, new { @class = "form-control" })
                        </div>
                    </div>
                </div>*@
        </div>
        <div style="clear:both"></div>
        <div class="form-group">
            <strong>12. Điểm tốt nghiệp:</strong>
            <div class="clear"></div>
            <div class="col-lg-6 col-md-6">
                <label>Tình trạng tốt nghiệp :</label>
                <div class="clear"></div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        <select name="TinhTrangTotNghiep" class="form-control">
                            <option value="1">Đã tốt nghiệp</option>
                            <option value="2">Chưa tốt nghiệp</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-lg-6 col-md-">
                <label>Tổng điểm tốt nghiệp: </label>
                <div class="clear"></div>
                <div class="col-lg-4 col-md-4 row">

                    @Html.TextBox("TongDiemTN", null, new { @class = "form-control", placeholder = "Tổng điểm...", type = "number" })

                </div>
            </div>
        </div>
        <div style="clear:both"></div>
        <div class="form-group">
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>10. Số báo danh</strong><i>(SBD dự thi Tốt nghiệp)</i>:
                </div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.TextBoxFor(m => m.SBD, new { @class = "form-control", placeholder = "Số báo danh..." })
                    </div>
                </div>
            </div>
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>11. Nhập lại số báo danh</strong>:
                </div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.TextBox("ReSBD", "", new { @class = "form-control", placeholder = "Số báo danh...", data_val = "false" })
                        <div id="ReTBSBD"></div>
                    </div>
                </div>
            </div>
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>12. CMTND (<a style="color:red;font-size:12px">*</a>):</strong>
                </div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.TextBoxFor(m => m.CMND, new { @class = "form-control", placeholder = "CMND..." })
                        <div id="ThongBao"></div>@Html.ValidationMessageFor(m => m.CMND)
                    </div>
                </div>
            </div>
            <div class="clear"></div>
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>13. Nhập lại CMTND (<a style="color:red;font-size:12px">*</a>):</strong>
                </div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.TextBox("ReCMND", "", new { @class = "form-control", placeholder = "CMND..." })
                        <div id="ReTBCMTND"></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <div class="form-group">
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>13. Điện thoại (<a style="color:red;font-size:12px">*</a>): </strong>
                </div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.TextBoxFor(m => m.SoDienThoai, new { @class = "form-control", placeholder = "SDT..." })
                        @Html.ValidationMessageFor(m => m.SoDienThoai)
                        <div id="ThongBaoSDT"></div>
                    </div>
                </div>
            </div>
            <div class="clear"></div>
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>14. Email (<a style="color:red;font-size:12px">*</a>): </strong>
                </div>
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        @Html.TextBoxFor(m => m.Email, new { @class = "form-control", placeholder = "Email...", })
                        <div id="ThongBaoEmail"></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <div class="form-group">
            <strong>15. Đăng ký dự thi : </strong>
            <div class="clear"></div>
            <div class="col-lg-6 col-md-6">
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        <label>Khối thi (<a style="color:red;font-size:12px">*</a>): </label>
                        @Html.DropDownList("MaKhoiThi", (SelectList)ViewBag.KhoiThi, "Chọn Khối thi...", new { @class = "form-control valid", data_val = "true", data_val_required = " ", aria_required = "true", aria_describedby = "MaKhoiThi-error MaKhoiThi-error MaKhoiThi-error", id = "GroupVocationalID" })
                        <span class="field-validation-valid" data-valmsg-for="MaKhoiThi" data-valmsg-replace="true"></span>

                        <br /><label>Chuyên ngành (<a style="color:red;font-size:12px">*</a>): </label>
                        @Html.DropDownListFor(m => m.MaChuyenNganh, new SelectList(Enumerable.Empty<SelectListItem>(), "MaChuyenNganh", "TenChuyenNganh"), "Chọn Chuyên ngành...", new { @class = "form-control", id = "MajorVocationalID" })
                        @Html.ValidationMessageFor(model => model.MaChuyenNganh)
                    </div>
                </div>
            </div>
            <div class="col-lg-6 col-md-6">
                <div class="col-lg-8 col-md-8">
                    <div class="row">
                        <label>Ngành (<a style="color:red;font-size:12px">*</a>): </label>
                        <div class="clear"></div>
                        @Html.DropDownList("MaNganh", new SelectList(Enumerable.Empty<SelectListItem>()), "Chọn Ngành...", new { @class = "form-control valid", id = "PhylumVocationalID", data_val = "true", data_val_required = " ", aria_required = "true", aria_describedby = "MaNganh-error MaNganh-error MaNganh-error" })
                        <span class="field-validation-valid" data-valmsg-for="MaNganh" data-valmsg-replace="true"></span>
                    </div>
                </div>
            </div>
        </div>
        <div style="clear:both"></div>
        <div class="form-group">
            <div class="col-lg-6 col-md-6">
                <div class="row">
                    <strong>1. Hệ đào tạo (<a style="color:red;font-size:12px">*</a>): </strong>
                    <div class="clear"></div>
                </div>
                <div class="form-group">
                    @Html.CheckBox("LienKet", (bool)ViewBag.LienKet)
                    <label for="HeDaoTaoKhac">Liên kết Quốc tế</label>
                </div>
                <div class="form-group">
                    @Html.CheckBox("HeCaoDang", (bool)ViewBag.HeCaoDang)
                    <label for="HeDaoTaoKhac">Cao đẳng nghề</label>
                </div>
                <div class="form-group">
                    @Html.CheckBox("HeTrungCap", (bool)ViewBag.HeTrungCap)
                    <label for="HeDaoTaoKhac">Trung Cấp chính quy</label>
                </div>
            </div>
        </div>
        <div style="clear:both"></div>
        <div class="form-group">
            <div class="col-lg-6 col-md-6">
                <strong>2. Nơi đào tạo: </strong>
                @Html.DropDownList("NoiDaoTao", ViewBag.NoiDaoTao as List<SelectListItem>, new { @class = "form-control" })
            </div>
        </div>
        <div style="clear:both"></div><br />
        <div class="btn-group">
            <button class="btn btn-primary btn-primary-registration" id="btDKNghe" type="submit"><b>  Đăng ký</b></button>
            <a href="#" class="btn btn-default">Hủy</a>
        </div><br /><br />
        <div style="clear:both"></div><br /><br />
    }

</div>

